<#include "../common/head.ftl" />
<#include "../common/page.ftl" />
<!DOCTYPE html>
<html>
	<@comme_head />
	<@comme_table/>
<head lang="en">
    <meta charset="UTF-8">
    <title>角色信息列表</title>
</head>
 <script>
  function search(){
    var name =  $("#name").val();
    window.location.href = "/manager/manager_tpart_list?name="+name+"&currentpageno=0";
  }
 </script>
<body>
<@comme_header />
<div class="main clearfix" id="main">
<@comme_daohang />
    <div class="right-content">
        <div class="content">
            <div id="container">
                <div class="box-1">
                    <input type="text" placeholder="搜索" class="search" name="name" id="name" value="${name?if_exists}">
                    <b class="fangdajing" onclick="search()"></b>
                </div>
                
                   <a href = "/manager/tpart_edit"><div class="tianjia">添加</div></a>
                
                <table class="zebra">
                    <caption>角色信息表</caption>
                    <thead>
                    <tr>
                        <th>角色名称</th>
                        <th>备注</th>
                        <th colspan="3">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                     <#if (manager_tpart_list?size) != 0>
                    <#list manager_tpart_list as roles>
                    <tr>

                        <td>${roles.name!}</td>
                        <td>${roles.remarks!}</td>
                        <td><a href = "/manager/manager_limit_tpart?id=${roles.id}">添加权限</a></td>
                        <td><a href = "/manager/tpart_edit?id=${roles.id}">修改</a></td>
                        <td><a href = "/manager/manager_del_Tpart?id=${roles.id}">删除</a></td>
                    </tr>
                    </#list>
                    </#if>
                    <tr>
                          <td colspan="5">
                           <div class="pages">
								<@page pageid="" url="/manager/manager_tpart_list?currentpageno=" />
							</div>
						  </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
</body>
</html>